package org.example.service;

import org.apache.ibatis.annotations.Param;
import org.example.dto.ClassroomDto;
import org.example.vo.ClassroomVo;

import java.util.List;

public interface ClassroomService {
    Integer addClassroom(ClassroomVo classroomVo);
    Integer updateClassroom(ClassroomVo classroomVo);
    Integer deleteClassroom(Integer classroomId);
    List<ClassroomDto> queryAllClassroom();
    Integer countClassroom();
    ClassroomDto queryClassroomById(Integer classroomId);
    List<ClassroomDto> queryClassroomByBuilding(String buildingName);
    Integer countClassroomByBuilding(String buildingName);
    List<ClassroomDto> queryClassroomByBuildingAndClassroomType(@Param("buildingName") String buildingName, @Param("classroomType") String classroomType);
    Integer countClassroomByBuildingAndClassroomType(@Param("buildingName") String buildingName, @Param("classroomType") String classroomType);

}
